<?php
session_start();
if(!isset($_SESSION['uid']))
 	{?>
		<script type="text/javascript">
			window.location="error.php";
		</script>
	<?php
 	}else
 		{
 			include_once 'topStaticBar.php';
 			include_once 'dataBaseConnectivityFile.php';
			$sql_get=mysql_query("select * from interior where INTERIOR_ID=".$_REQUEST['interior_id']);
 			if (!$sql_get)
 			{
    			echo 'Could not run query: '.mysql_error();
			}

			while ($db_field=mysql_fetch_assoc($sql_get))
                {
                    $INTERIOR=$db_field["INTERIOR"];                    
                }
 		?>	
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<h1 align="center">Edit Interior Information</h1>
	<form name="form" method="post" action="editInteriorInformationServer.php">
		<input type="hidden" name="interior_id" value="<?php echo $_REQUEST['interior_id']?>">
		<table border="1" align="center">
			<tr>
				<td align="right">
					Interior Imformation:
				</td>
				<td align="left">
					<input type="text" style="width: 400px" name="interior" 
					value="<?php echo $INTERIOR	?>"> 
				</td>
			</tr> 	
			<tr>
				<td align="right">
					<input type="submit" name="submit" value="Update">
				</td>
			</tr>
</table>
</form>				
<?php
 }
 ?>